package com.itheima.service.impl;

import com.itheima.service.AccountService;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
//@Lazy  //只针对单例模式有效  prototype默认是使用时加载
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class AccountServiceImpl implements AccountService {
    @Override
    public void delAccount() {
        System.out.println("删除账户成功");
    }

    public AccountServiceImpl() {
        System.out.println("初始化");
    }
}
